@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');
*{
  margin: 0;
  padding: 0;
}

.clear{
  clear: both;
}

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;   /* fallback: Tajawal */
  background-color: #e4effa;
}

.navbar-wrapper {
  background-color: #0f322c;
  padding: 10px 0 0 0;
  text-align: center;
  overflow: visible;
  position: relative;
}

.nav-logo {
  height: 85px;
  margin-top: 10px;
}

#lang-btn {
  background-color: #0f322c;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 7px 11px rgba(0, 0, 0, 2.1);
}

#lang-btn:hover {
  background-color: #87bd4a;
  transform: scale(1.05);
}

.navbar {
  background-color: #0f322c;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  gap: 45px;
  overflow: visible;
  position: relative;
}

.navbar a {
  font-size: 16px;
  color: white;
  text-align: center;
  text-decoration: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
  color: #87bd4a;
}

.navbar a::after,
.dropbtn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #87bd4a;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s linear;
}

.navbar a:hover::after,
.dropdown:hover .dropbtn::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropbtn {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  min-width: 160px;
  border-radius: 8px;
  padding: 15px 0;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 999;
  overflow: visible;
}

.dropdown-content::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
  z-index: 1000;
}

.dropdown-content a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.dropdown-content a:hover {
  background-color: #ddd;
  color: #87bd4a;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #87bd4a;
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s linear;
}

.submenu {
  position: relative;
}

.submenu-content {
  display: none;
  position: absolute;
  inset-block-start: -20%;        
  inset-inline-start: 100%;     
  background: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 10px 0;
  z-index: 1000;
}

.submenu:hover .submenu-content {
  display: block;
}

[dir="rtl"] .submenu-content {
  inset-inline-start: 100%;   
  inset-inline-end: auto;    
}

.image-grid-h1{
  text-align: center;
  margin-top: 35px;
}    

.image-fade-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.image-container {
  border: 2px solid #000;
  padding: 10px;
  background-color: #fff;
  border-radius: 20px;
  width: 100%;
  max-height: min(77vh, 560px);
  overflow: hidden;
}

.product-hero{
  display:grid;
  grid-template-columns: minmax(320px, 1fr) 1fr;
  gap:24px;
  align-items:start;
  margin: 10px;
  justify-content: center;   /* NEW */
  margin: 20px auto;         /* centers the grid itself */
  max-width: 1200px; 
}

.gallery-container {
  max-width: 800px;
  margin: auto;
  border: 1px solid #333;
  padding: 20px;
  text-align: center;
}

:fullscreen img,
:-webkit-full-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

.nav {
  position: absolute;
  font-size: clamp(18px, 3.8vw, 32px);
  padding: clamp(6px, 1vw, 10px);
  top: 50%;
  font-size: 2rem;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1;
  transform: translateY(-50%);
}

.nav.left {
  left: 10px;
  border-radius: 10px;
  color: #87bd4a;
}

[dir="rtl"] .nav.left{
  flex-direction:row-reverse; 
}

.nav.right {
  right: 10px;
  border-radius: 10px;
  color: #87bd4a;
}

.thumbnails {
  display:flex;
  gap:10px;
  margin-top:10px;
  padding-bottom:4px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.thumbnails::-webkit-scrollbar{ height:8px; }
.thumbnails::-webkit-scrollbar-thumb{ background:#d3dbe3; border-radius:999px; }

.thumbnails img {
  width: clamp(64px, 10vw, 90px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius:10px;
  border:2px solid transparent;
}

.thumbnails img:hover {
  border-color: #000;
  border-radius: 10px;
}

.fs{
  position:fixed; inset:0; display:none;
  background:#000; z-index:9999;
  align-items:center; justify-content:center;
}

.fs-btn{
  position:fixed; top:50%; transform:translateY(-50%);
  width:48px; height:48px; border:none; border-radius:50%;
  background:rgba(255,255,255,.18); color:#87bd4a; font-size:26px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.fs-left {
  left:20px; 
}

.fs-right{ 
  right:20px; 
}

.fullscreen-open{ 
  overflow:hidden; 
} 

#fsImg{
  max-width:100vw; max-height:100vh; object-fit:contain;
}

.fs-close{
  position:absolute; top:14px; left:14px;
  background:transparent; border:0; font-size:26px; color:#87bd4a; cursor:pointer;
}

.fs-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.15); border:0; color:#87bd4a; font-size:34px;
  width:48px; height:64px; cursor:pointer;
  direction:ltr !important; 
  unicode-bidi:isolate !important;
}

.fs-nav.left{ 
  left:12px; 
}

.fs-nav.right{ 
  right:12px; 
}

.parent-container {
  display: flex;
  justify-content: space-between; 
  align-items: center;
}

.scooter-card {
  background-color: #ffffff;
  padding: 20px 25px;    
  border-radius: 25px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin-left: 15px;
  margin-right: 15px;
}

.scooter-card h2 {
  color: #0f322c;
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: bold;
}

.scooter-card p {
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.scooter-card ul {
  list-style: none;
  padding-right: 0;
  margin: 0;
}

.scooter-card ul li {
  margin-bottom: 8px;
  padding-right: 20px;
  position: relative;
  margin-left: 15px;
}

.scooter-card ul li::before {
  content: "•";
  color: #87bd4a;
  position: absolute;
  font-size: 2.3rem;
  line-height: 1;
  left: 0;
  margin-left: -20px;
  margin-top: -6px;
}

.scooter-card strong {
  color: #000;
}

.more-details {
  background-color: white;
  padding: 30px;
  margin-top: 30px;
  border-radius: 60px;
  color: #003c4d;
  font-family: sans-serif;
  max-width: 100%;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body[dir="rtl"] .scooter-card ul li::before {
  right: -10px;   
  left: auto;    
  margin-left: 0; 
}

body[dir="rtl"] .scooter-card ul li {
  padding-right: 30px; 
  padding-left: 0;    
}

.more-details h2 {
  font-size: 26px;
  margin-bottom: 20px;
  text-align: center;
}

.more-details ul {
  list-style: none;
  padding-left: 0;
  font-size: 16px;
  line-height: 1.8;
}

.more-details ul li::before {
  content: "✔️";
  margin-right: 10px;
  color: #87bd4a;
}

.footer-outer{
  background:#0f322c;             
}

.footer{
  max-width: 1200px;               
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left logo right";
  align-items: center;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 20px;
  text-align: center;              
}

.footer-left  { grid-area: left;  display:flex; flex-direction:column; align-items:center; gap:10px; }
.footer-middle{ grid-area: logo;  display:flex; align-items:center; justify-content:center; }
.footer-right { grid-area: right; display:flex; flex-direction:column; align-items:center; gap:10px; }

.footer-middle-img{ width: clamp(140px, 20vw, 220px); height:auto; }

.footer-right-icons{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }
.footer-right-img{ width:34px; height:34px; transition:transform .3s ease; }
.footer-right-img:hover{ transform:scale(1.12); }

.footer-left-h1,
.footer-right-h1{ color:#87bd4a; margin:0 0 6px; font-weight:700; }

.footer-left-h3{
  color: #87bd4a;
}

.footer p,
.footer .phone,
.footer .email{ color:#87bd4a; margin:0; font-size:16px; }

.footer .phone, .footer .email{ direction:ltr; unicode-bidi:isolate; }

[dir="rtl"] .footer{
  flex-direction:row-reverse; 
}

[dir="rtl"] .footer-right-icons{
  justify-content:flex-end;  
}

@media (max-width: 820px){
  .footer{
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "left"
      "right";
    justify-items: center;
  }
}

@media (max-width:1024px){
  .product-hero{ 
    grid-template-columns: 1fr; 
  }
  .image-container {
  max-height: min(120vh, 835px);
  }
  .scooter-card{ 
    margin: 20px auto 0 auto !important;
  }
}